"""
讲师:caoyan
日期：2022/8/31 15:15
"""
import os
import yaml


class  YamlUtils():

    def   readYaml(self):
          f = open(os.getcwd()+"/data/token.yaml", "r+")
          s = yaml.load(f,Loader=yaml.Loader)

          f.close()
          return s
    def   writerYaml(self,data):
          f = open(os.getcwd()+"/data/token.yaml", "w+")
          ls = data
          yaml.dump(ls,f)
          f.close()


